package com.runfast.waimai.dao.mapper;

import com.runfast.common.dao.IMapper;
import com.runfast.waimai.dao.model.RunfastCreditlevel;
import com.runfast.waimai.dao.model.RunfastCreditlevelExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RunfastCreditlevelMapper extends IMapper<RunfastCreditlevel, Integer, RunfastCreditlevelExample> {
   List<RunfastCreditlevel> findAll();

    RunfastCreditlevel findAgentid(Integer agentId);
    RunfastCreditlevel get(Integer id);
    void delete(Integer id);

    List<RunfastCreditlevel> findcreditlevelAndAgentid(@Param("endgrade") Integer endgrade, @Param("agentname")String agentname);
}